package com.ptswitch.material.service;

import java.util.List;

import com.ptswitch.material.model.common.HTree;

public interface HTreeService {

    void init();

    List<HTree> findAncestors(String id);

    List<HTree> findDescendants(String pid);

    List<HTree> findParents(String id);//允许多个父亲

    List<HTree> findChildren(String pid);

    void insert(String id, String pid);

    void delete(String id, boolean deleteAllDescs);

    void move(String id, String npid);

}
